package com.apache.api.api;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @description: 权限验证扩展接口
 * @author: Hou Dayu
 * @date: Created in 2021/2/1
 */
public interface IAuthentication {

    /**
     * 获取访问权限验证自定义扩展接口
     * @param loginUser 登录用户信息
     * @param request
     * @param response
     * @param userRoles 权限用户角色
     * @return true/false
     */
    boolean aouthSecurity(Object loginUser, HttpServletRequest request, HttpServletResponse response, String userRoles, String userTypes);
}
